package com.zcy.tag2;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.SkipPageException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class SkippageOrEvalPage extends SimpleTagSupport{

	@Override
	public void doTag() throws JspException, IOException {
		PageContext pageContext=(PageContext) getJspContext();
		String referer=pageContext.getRequest().getParameter("referer");
		//String s="http://"+pageContext.getRequest().getServerName();
		if(referer==null){//根据是否异常执行下面的代码
			throw new SkipPageException();
		}
	}

	
}
